package com.sfy.core.example.fault.retry;

import com.sfy.core.example.loadbalancer.LoadBalancer;
import com.sfy.core.example.loadbalancer.RoundRobinLoadBalancer;
import com.sfy.core.example.spi.SpiLoader;

public class RetryStrategyFactory {

    static{
        SpiLoader.load(RetryStrategy.class);
    }

    private static final RetryStrategy retryStrategy = new NoRetryStrategy();

    public static RetryStrategy getInstance(String key){
        return SpiLoader.getInstance(RetryStrategy.class, key);
    }
}
